-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: extensions parameter overrides #76
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest pg_cron nixpkg (1.6.2) breaks on PG14, so we pin the version on 1.5.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pinned pg_cron breaks on pg 16 though. I'll change the test to use a contrib extension to avoid these issues.
It no longer exists
370e2bd
to
8c2fd7a
Compare
For extensions like pg_cron, the permissions depend on the owner of the extension object, which in turn depends on which role runs the `CREATE EXTENSION`. One might want to temporarily make the user role a superuser during pg_restore. This would break pg_cron because once the user role is reverted to non-superuser, the extension owner (i.e. the non-superuser user role) would not have permissions to execute pg_cron functions. This is not an issue if we make the `CREATE EXTENSION` run as the privileged_extensions_superuser unconditionally, since by definition it would always be a superuser.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Some docs on the README would be nice.
Allows overriding
create extension
parameters. E.g. with:When someone runs
create extension pg_cron with schema public
, it gets created inpg_catalog
instead:Currently only supports
schema
, but may supportversion
,owner
, etc. in the future.